package com.framework.Module.system.file;

import com.framework.Table.Table;
import com.framerock.baselib.Rock;


public class Tablefile extends Table {


    protected void initTable() {
        this.tablename   = "file";
        this.tablenamesm = "上传的文件";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "909",
                "isxt", "2",
                "sortdir", "id desc"
        });

        this.addfields("fileext", "varchar(30)", "", "类型", new String[]{
                "isbt","1",
                "isss","1",
        });
        this.addfields("filename", "varchar(200)", "", "文件名", new String[]{
                "isbt","1",
                "isss","1",
                "isalign","1"
        });
        this.addfields("filenum", "varchar(30)", "", "文件编号", new String[]{
                "isbt","1",
                "isss","1",
        });
        this.addfields("filesize", "bigint(20)", "0", "文件大小", new String[]{
                "islb","0",
        });
        this.addfields("filesizecn", "varchar(30)", "", "文件大小", new String[]{
                "isss","1",
        });
        this.addfields("filepath", "varchar(300)", "", "文件路径", new String[]{
                "islb","0",
        });
        this.addfields("thumbpath", "varchar(300)", "", "缩略图路径", new String[]{
                "islb","0",
        });
        this.addfields("optname", "varchar(50)", "", "操作人", new String[]{
                "isbt","1",
                "isss","1",
        });
        this.addfields("adddt", "datetime", null, "添加时间", new String[]{
                "ispx","1",
        });
        this.addfields("aid", "int(11)", "0", "操作人Id", new String[]{
                "islb","1",
                "notelement", "1"
        });
        this.addfields("cid", "int(11)", "0", "对应单位");
        this.addfields("fileid", "int(11)", "0", "文件ID");
        this.addfields("cid", "KEY", "`cid`", "单位ID");
        this.addfields("fileid", "KEY", "`fileid`", "文件ID");
        this.addfields("filenum", "KEY", "`filenum`", "文件编号");
    }


}
